#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int n;
	scanf("%d", &n);
	printf("1");
	for (int i = 2; i <= n; i++)
	{
		while (n % i == 0)
		{
			printf("*%d", i);
			n /= i;
		}
	}
	return 0;
}
